/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TaBox.client;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;
import tabox.server.Handler;

/**
 *
 * @author rendy
 */
public class Client extends Thread{
    @Override
    public void run(){
        try {
            Socket socket = new Socket("127.0.0.1",6666);
                System.out.println("Waiting...");
                ClientHandler handler = new ClientHandler(socket);
                handler.start();
        } catch (IOException ex) {
            Logger.getLogger(tabox.server.Server.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    public static void main(String[] args){
        Client client = new Client();
        client.start();
    }
}
